package com.tvunetworks.center.user.model.param;

import com.tvunetworks.center.common.model.param.BasePageParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @program: tvucc-aggregator
 * @description: PageUserInstanceParam
 * @author lebronchen
 * @create: 2020-04-24 09:38
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class PageUserInstanceParam extends BasePageParam {

    private String condition;
    private int[] status;

    /**
     *
     *
     * @return 状态数组
     */
    public int[] getStatus() {

        if (status == null) {
            return null;
        }

        return status.clone();
    }

    /**
     *
     *
     * @param status 状态数组
     * @return  PageUserInstanceParam
     */
    public PageUserInstanceParam setStatus(int[] status) {

        if (status == null) {
            return this;
        }

        this.status = status.clone();

        return this;
    }


}
